<?php if (Yii::app()->user->hasFlash('success')): ?>
	<div class="alert-message success">
		<?php echo Yii::app()->user->getFlash('success') ?>
	</div>
<?php endif ?>
<?php if (Yii::app()->user->hasFlash('error')): ?>
	<div class="alert-message error">
		<?php echo Yii::app()->user->getFlash('error') ?>
	</div>
<?php endif ?>
<?php $form = $this->beginWidget('CActiveForm'); ?>
<div class="row">
	<div class="span12">
		<fieldset>  
			<legend>Tạo shop mới</legend>  
			<div class='clearfix'>
				<label for="name">Tên shop</label>
				<div class='input'>
					<?php echo $form->textField($model, 'name', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'name'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Địa chỉ</label>
				<div class='input'>
					<?php echo CHtml::activeTextArea($model, 'address', array('rows' => 5, 'cols' => 500, 'class' => 'span8')); ?>
					<?php echo $form->error($model, 'address'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Hình</label>
				<div class='input'>
					<?php echo $form->textField($model, 'image', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'image'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Fanpage Url</label>
				<div class='input'>
					<?php echo $form->textField($model, 'fanpage_url', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'fanpage_url'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<label for="address">Website</label>
				<div class='input'>
					<?php echo $form->textField($model, 'website', array('size' => 80, 'maxlength' => 128)); ?>
					<?php echo $form->error($model, 'website'); ?>
				</div>
			</div>
			<div class='clearfix'>
				<div class='input'>
					<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array('class' => 'btn info')); ?>
				</div>
			</div>

		</fieldset> 
	</div>
</div>
<?php $this->endWidget(); ?>